Skip to content

booster/unit-tests/Pattern/MatchDispatch: exhaustive dispatch-class grid test for matchTerms#4155

Draft
ehildenb wants to merge 1 commit into
masterfrom
match1-dispatch-grid-test
Draft

booster/unit-tests/Pattern/MatchDispatch: exhaustive dispatch-class grid test for matchTerms#4155
ehildenb wants to merge 1 commit into
masterfrom
match1-dispatch-grid-test

Conversation

@ehildenb

Copy link
Copy Markdown
Member

One canonical pattern/subject term per Term constructor, crossed over all three match modes: 243 (mode, pattern, subject) cells, each asserting only the MatchResult class (success / decisive failure / indeterminate) against an explicit per-mode 9x9 expectation grid. The grids are the artifact: any change to the match1 dispatch table in Booster.Pattern.Match surfaces as a reviewable grid-cell diff, and the test documents the matcher's entire dispatch policy at a glance. Companion fine-grained tests (MatchEval and friends) continue to pin exact substitutions, failure reasons, and remainders; this module pins only the class.

This is to prepare for a major overhaul here: #4152

…rid test for matchTerms

One canonical pattern/subject term per Term constructor, crossed over all
three match modes: 243 (mode, pattern, subject) cells, each asserting only
the MatchResult class (success / decisive failure / indeterminate) against an
explicit per-mode 9x9 expectation grid. The grids are the artifact: any
change to the match1 dispatch table in Booster.Pattern.Match surfaces as a
reviewable grid-cell diff, and the test documents the matcher's entire
dispatch policy at a glance. Companion fine-grained tests (MatchEval and
friends) continue to pin exact substitutions, failure reasons, and
remainders; this module pins only the class.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant